package com.example.zsr.akpautoupdatedemo.FileUtils;

import java.io.Serializable;
/**
 * 用serializable就可以接受intent的参数了
 * @author zhengshaorui
 *
 */
public class FileInfo implements Serializable{

	private int id;
	private String apkurl;
	private String fileName;
	private int length;
	private int finished;
	
	
	
	public FileInfo() {
		super();
	}
	public FileInfo(int id, String apkurl, String fileName, int length,
			int finished) {
		super();
		this.id = id;
		this.apkurl = apkurl;
		this.fileName = fileName;
		this.length = length;
		this.finished = finished;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getApkurl() {
		return apkurl;
	}
	public void setApkurl(String apkurl) {
		this.apkurl = apkurl;
	}
	public String getFileName() {
		return fileName;
	}
	@Override
	public String toString() {
		return "FileInfo [id=" + id + ", apkurl=" + apkurl + ", fileName="
				+ fileName + ", length=" + length + ", finished=" + finished
				+ "]";
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getFinished() {
		return finished;
	}
	public void setFinished(int finished) {
		this.finished = finished;
	}
}
